
INCLUDE_DIRECTORIES(
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/common
    ${CMAKE_CURRENT_SOURCE_DIR}/core
    ${CMAKE_CURRENT_SOURCE_DIR}/game
    ${CMAKE_CURRENT_SOURCE_DIR}/widgets
    ${CMAKE_CURRENT_SOURCE_DIR}/../common
    ${CMAKE_CURRENT_BINARY_DIR}
)

SET(client_SRCS
    main.cpp
    core/application.cpp
    core/mainwindow.cpp
    core/serverconnection.cpp
    game/game.cpp
    #game/player.cpp
    game/cardwidgetsizemgr.cpp
    widgets/cardpocketwidget.cpp
    widgets/cardwidget.cpp
    widgets/characterwidget.cpp
    widgets/gamewidget.cpp
)

SET(client_MOC
    core/application.h
    core/mainwindow.h
    core/serverconnection.h
    game/game.h
    game/cardwidgetsizemgr.h
    widgets/cardpocketwidget.h
    widgets/cardwidget.h
    widgets/characterwidget.h
)

SET(client_UI
    core/mainwindow.ui
)

QT4_WRAP_CPP(client_MOC_SRCS ${client_MOC})
QT4_WRAP_UI(client_UI_HEADERS ${client_UI})

ADD_EXECUTABLE(kshootout-client
    ${client_SRCS}
    ${client_MOC_SRCS}
    ${client_UI_HEADERS}
)

TARGET_LINK_LIBRARIES(kshootout-client kshootout-common ${QT_LIBRARIES})
